package user.zc.excel.data.wrap;


import user.zc.excel.WriteDTO;

import java.util.List;

public class ExcelDataStart<T> extends AWrapper{
    public ExcelDataStart(AWrapper next) {
        super(next);
    }

    @Override
    public WriteDTO merge(WriteDTO writeDTO) {
        return new WriteDTO();
    }

    public static <T> WriteDTO start(List<T> list){
        ColumnMergedRegionWrapper columnMergedRegionWrapper = new ColumnMergedRegionWrapper(null);
        TitleMergedRegionWrapper titleMergedRegionWrapper = new TitleMergedRegionWrapper(columnMergedRegionWrapper);
        ExcelDataWrapper excelDataWrapper = new ExcelDataWrapper(list,titleMergedRegionWrapper);
        return new ExcelDataStart(excelDataWrapper).todo(null);
    }
}
